﻿<Window x:Class="DataBinding.BasicListView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:DataBinding"
    Title="BasicListView" Height="370" Width="554"
    >

  <Grid>
      <ListView Margin="5" Name="lstProducts">
        <ListView.View>
          <GridView>
            <GridView.Columns>              
              <GridViewColumn Header="Name" DisplayMemberBinding="{Binding Path=ModelName}" />
              <GridViewColumn Header="Model" DisplayMemberBinding="{Binding Path=ModelNumber}" />
                        <GridViewColumn Header="Price" DisplayMemberBinding="{Binding Path=UnitCost,StringFormat={}{0:C}}" />
              
            </GridView.Columns>
          </GridView>
        </ListView.View>
      </ListView>
    </Grid>
</Window>
